<div class="box-content">
    <?=form_open(uri_string());?>
    <table class="form">
        <tr>
            <td class="w150 required label"><?php echo lang('function.module');?></td>
            <td>
                <select class="w150" id="module_id" name="module_id">
                    <option value=""><?php echo lang('function.module');?></option>
                    <?php foreach ($modules as $module){?>
                    <option <?php  echo ($rs->module_id==$module->module_id)?'selected=true':'' ?> value="<?php echo $module->module_id; ?>"><?php echo $module->module_name?></option>
                    <?php } ?>
                </select>
            </td>
        </tr>
        <tr>
            <td class="w150 required label"><?php echo lang('function.code');?></td>
            <td><input type="text" name="function_code"  class="w300" value="<?php echo $rs->function_code; ?>"></td>
        </tr>
        <tr>
            <td class="w150 required label"><?php echo lang('function.name');?></td>
            <td><input type="text" name="function_name"  class="w300" value="<?php echo $rs->function_name; ?>"></td>
        </tr>
        <tr>
            <td class="label"><?php echo lang('function.comment');?></td>
            <td>
                <textarea style="width: 400px; height: 50px;" name="function_comment"><?php echo $rs->function_comment;?></textarea>
            </td>
        </tr>
        <tr>
            <td></td>
            <td class="footer"><input type="submit" name="bt_submit" class="capnhat"></td>
        </tr>               
    </table>
    <?=form_close();?>
</div>